export const searchConfig = {
	inline: true,
	showBtn: true,
	labelPosition: 'right',
	labelWidth: '80px',
	column: [
		{
			label: '姓名',
			prop: 'name',
			type: 'input',
			span: 6,
		},
		{
			label: '性别',
			prop: 'gender',
			type: 'input',
			span: 6,
			dicData: [
				{ label: '男', value: 1, style: { color: '#FF8800', background: '#FFDBB1' } },
				{ label: '女', value: 2, style: { color: '#00A870', background: '#C8FFB1' } },
			],
		},
		{
			label: '联系方式',
			prop: 'phone',
			type: 'input',
			span: 6,
		},
		{
			label: '证件号码',
			prop: 'idCard',
			type: 'input',
			span: 6,
		},
		{
			label: '审批状态',
			prop: 'approveStatus',
			type: 'select',
			span: 6,
			dicData: [
				{ label: '待审批', value: 0, style: { color: '#FF8800', background: '#FFDBB1' } },
				{ label: '已审批', value: 1, style: { color: '#00A870', background: '#C8FFB1' } },
				{ label: '已撤销', value: 2, style: { color: '#707070', background: 'rgba(112, 112, 112, 0.1)' } },
			],
		},
		{
			label: '审批结果',
			prop: 'approveStatus',
			type: 'select',
			span: 6,
			dicData: [
				{ label: '审核通过', value: 1, style: { color: '#00A870', background: '#C8FFB1' } },
				{ label: '审核驳回', value: 0, style: { color: '#FA3E3E', background: '#FFC4B1' } },
			],
		},
		{
			label: '申请时间',
			prop: 'createTimeBetween',
			type: 'dateBetween',
			valueFormat: 'YYYY-MM-DD HH:mm:ss',
			span: 6,
		},
	],
}

export const tableConfig = {
	stripe: true,
	border: true,
	columns: [
		{ label: '姓名', prop: 'name' },
		{ label: '证件号码', prop: 'idCard', plusXing: '2,2' },
		{
			label: '性别',
			prop: 'gender',
			custome: 'dict',
			dicData: [
				{ label: '男', value: 1 },
				{ label: '女', value: 2 },
			],
		},
		{ label: '联系方式', prop: 'phone', plusXing: '5,2' },
		{ label: '申请时间', prop: 'createTime' },
		{ label: '备注', prop: 'approveRemark' },
		{
			label: '审批状态',
			prop: 'approveStatus',
			custome: 'dict',
			dicData: [
				{ label: '待审批', value: 0, style: { color: '#FF8800', background: '#FFDBB1' } },
				{ label: '已审批', value: 1, style: { color: '#00A870', background: '#C8FFB1' } },
				{ label: '已撤销', value: 2, style: { color: '#707070', background: 'rgba(112, 112, 112, 0.1)' } },
			],
		},
		{
			label: '审批结果',
			prop: 'approveStatus',
			custome: 'dict',
			dicData: [
				{ label: '审核通过', value: 1, style: { color: '#00A870', background: '#C8FFB1' } },
				{ label: '审核驳回', value: 0, style: { color: '#FA3E3E', background: '#FFC4B1' } },
			],
		},
		{
			label: '操作',
			prop: 'menu',
			width: 300,
			fixed: 'right',
		},
	],
}

export const api = {
	index: 'view_iccVeinApprove_page',
	edit: 'view_iccVeinApprove_edit',
	detail: 'view_iccVeinApprove_page',
}
export const baseConfig = {
	dictcodes: ['BLOCK_CHAIN_STATUS'],
	rowKey: 'id',
	tipLabel: 'name',
	pageName: '指静脉打卡记录',
	exportMqTopic: '/ning/export/',
	api,
	auth: api,
	menuBtn: [],
	paramsObj: {
		personType: 1,
	},
	dialogConfig: {
		width: '75%',
	},
	detailConfig: {
		customeHeader: {
			type: 'CardTwo',
			title: 'personName',
			avatar: 'image',
			tipList: [{ prop: 'telephone', type: 'tip-success', label: '联系电话' }],
			tagList: [
				{
					prop: 'countryLevel',
					propName: 'countryLevelLabel',
					code: 'ACCESS_LEVEL_COUNTRY',
					custome: 'tag',
					type: 'success',
					label: '能力等级',
				},
				{ prop: 'punchPlace', type: 'success', label: '打卡地点' },
				{ prop: 'organizationName', type: 'success', label: '服务组织' },
			],
			menuBtn: [],
		},
	},
	searchConfig,
	tableConfig,
}
